package online.shenme.day12;

import java.io.*;
import java.util.Arrays;

public class FileSortTest {
    public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new FileReader("javaadvance/src/online/shenme/day12/test.txt"));
        char[] chars=new char[1024];
        int len;
        String[] arr = br.readLine().split(" ");
        int[] ints= new int[arr.length];
        for (int i = 0; i < arr.length; i++) {
            ints[i]=Integer.parseInt(arr[i]);
        }
        Arrays.sort(ints);
        BufferedWriter bw=new BufferedWriter(new FileWriter("javaadvance/src/online/shenme/day12/test1.txt"));
        for (int anInt : ints) {
            bw.write(String.valueOf(anInt)+" ");
        }
        br.close();
        bw.close();
    }
}
